# 设置类
class Settings:
    def __init__(self):
        self.screen_width = 1200
        self.screen_height = 800
        self.bg_color = (230, 230, 230)

        # 飞船相关
        self.ship_speed_factor = 1.5
        self.ship_limit = 3

        # 子弹相关
        self.bullet_speed_factor = 1
        self.bullet_width = 3
        self.bullet_height = 15
        self.bullet_color = (60, 60, 60)
        self.bullets_allowed = 3

        # 外星人相关
        self.alien_speed_factor = 0.3
        self.alien_down_speed = 30
        # 1代表向右 -1代表向左
        self.alien_direct = 1
